







ListBase<(Of <T>)> Members |
See Also Methods Properties Constructors Explicit Interface Implementations |
![]() ![]() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public abstract class ListBase<T> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public MustInherit Class ListBase(Of T) |
Visual C++ |
---|
[SerializableAttribute] generic<typename T> public ref class ListBase abstract |
Type Parameters
- T
The type exposes the following members.
Protected Constructors
Name | Description | |
---|---|---|
![]() | ListBase<(Of <T>)>ListBase<(Of <T>)>New |
Public Methods
Name | Description | |||||
---|---|---|---|---|---|---|
![]() | Add |
Adds an item to the end of the list. This method is equivalent to calling:
(Overrides CollectionBase<(Of <T>)>..::Add(T).)
| ||||
![]() | AsReadOnly |
Provides a read-only view of this list. The returned IList<T> provides
a view of the list that prevents modifications to the list. Use the method to provide
access to the list without allowing changes. Since the returned object is just a view,
changes to the list will be reflected in the view.
| ||||
![]() | Clear |
This method must be overridden by the derived class to empty the list
of all items.
(Overrides CollectionBase<(Of <T>)>..::Clear()().) | ||||
![]() | Contains |
Determines if the list contains any item that compares equal to item.
The implementation simply checks whether IndexOf(item) returns a non-negative value.
(Overrides CollectionBase<(Of <T>)>..::Contains(T).) | ||||
![]() | ConvertAll<(Of <TOutput>)> |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | CopyTo | Overloaded. | ||||
![]() | CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | Equals | (Inherited from Object.) | ||||
![]() | Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | Find |
Finds the first item in the list that satisfies the condition
defined by predicate. If no item matches the condition, than
the default value for T (null or all-zero) is returned.
| ||||
![]() | FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | FindIndex | Overloaded. | ||||
![]() | FindLast |
Finds the last item in the list that satisfies the condition
defined by predicate. If no item matches the condition, than
the default value for T (null or all-zero) is returned.
| ||||
![]() | FindLastIndex | Overloaded. | ||||
![]() | ForEach |
Performs the specified action on each item in this collection.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | GetEnumerator |
Enumerates all of the items in the list, in order. The item at index 0
is enumerated first, then the item at index 1, and so on.
(Overrides CollectionBase<(Of <T>)>..::GetEnumerator()().) | ||||
![]() | GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | ||||
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) | ||||
![]() | IndexOf | Overloaded. | ||||
![]() | Insert |
This method must be overridden by the derived class to insert a new
item at the given index.
| ||||
![]() | LastIndexOf | Overloaded. | ||||
![]() | Range |
Returns a view onto a sub-range of this list. Items are not copied; the
returned IList<T> is simply a different view onto the same underlying items. Changes to this list
are reflected in the view, and vice versa. Insertions and deletions in the view change the size of the
view, but insertions and deletions in the underlying list do not.
| ||||
![]() | Remove |
Searches the list for the first item that compares equal to item.
If one is found, it is removed. Otherwise, the list is unchanged.
(Overrides CollectionBase<(Of <T>)>..::Remove(T).) | ||||
![]() | RemoveAll |
Removes all the items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | RemoveAt |
This method must be overridden by the derived class to remove the
item at the given index.
| ||||
![]() | ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | ToString |
Shows the string representation of the collection. The string representation contains
a list of the items in the collection. Contained collections (except string) are expanded
recursively.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() | TryFind |
Finds the first item in the list that satisfies the condition
defined by predicate.
| ||||
![]() | TryFindLast |
Finds the last item in the list that satisfies the condition
defined by predicate.
|
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Public Properties
Name | Description | |
---|---|---|
![]() | Count |
The property must be overridden by the derived class to return the number of
items in the list.
(Overrides CollectionBase<(Of <T>)>..::Count.) |
![]() | Item |
The indexer must be overridden by the derived class to get and set
values of the list at a particular index.
|
Explicit Interface Implementations
Name | Description | |||||
---|---|---|---|---|---|---|
![]() ![]() | ICollection<(Of <T>)>..::IsReadOnly | (Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() ![]() | ICollection..::CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() ![]() | ICollection..::IsSynchronized |
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() ![]() | ICollection..::SyncRoot |
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() ![]() | IEnumerable..::GetEnumerator |
Provides an IEnumerator that can be used to iterate all the members of the
collection. This implementation uses the IEnumerator<T> that was overridden
by the derived classes to enumerate the members of the collection.
(Inherited from CollectionBase<(Of <T>)>.) | ||||
![]() ![]() | IList..::Add |
Adds an item to the end of the list. This method is equivalent to calling:
| ||||
![]() ![]() | IList..::Clear |
Removes all the items from the list, resulting in an empty list.
| ||||
![]() ![]() | IList..::Contains |
Determines if the list contains any item that compares equal to value.
| ||||
![]() ![]() | IList..::IndexOf |
Find the first occurrence of an item equal to value
in the list, and returns the index of that item.
| ||||
![]() ![]() | IList..::Insert |
Insert a new
item at the given index.
| ||||
![]() ![]() | IList..::IsFixedSize |
Returns whether the list is a fixed size. This implementation always returns false.
| ||||
![]() ![]() | IList..::IsReadOnly |
Returns whether the list is read only. This implementation returns the value
from ICollection<T>.IsReadOnly, which is by default, false.
| ||||
![]() ![]() | IList..::Item |
Gets or sets the
value at a particular index in the list.
| ||||
![]() ![]() | IList..::Remove |
Searches the list for the first item that compares equal to value.
If one is found, it is removed. Otherwise, the list is unchanged.
| ||||
![]() ![]() | IList..::RemoveAt |
Removes the
item at the given index.
|